3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
8 import domain.RuralHouse;
9 import exceptions.BadDates;
10 import exceptions.OverlappingOfferExists;
12 public interface OfferInterface extends Remote {
15 * This method creates an offer with a house number, first day, last day and
19 * number, start day, last day and price
20 * @return the created offer, or null, or an exception
22 public Offer createOffer(RuralHouse ruralHouse, Date firstDay,
23 Date lastDay, float price) throws OverlappingOfferExists, BadDates,
24 RemoteException, Exception;
26 public void deleteOffer(RuralHouse rh, Offer o) throws RemoteException,